package io.coderyeah.product.mapper;

import io.coderyeah.product.domain.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.coderyeah.product.dto.ProDTO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author coderyeah
* @description 针对表【t_product】的数据库操作Mapper
* @createDate 2022-09-27 09:51:42
* @Entity io.coderyeah.product.domain.Product
*/
public interface ProductMapper extends BaseMapper<Product> {

    List<Product> getAllPros(ProDTO proDTO);

    void offsale(@Param("ids") List<Long> ids, @Param("date") Date date);

    void onsale(@Param("id") Long id, @Param("date") Date date);

    Product getPetById(Long id);
}




